<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- ä¸Šè¿°3ä¸ªmetaæ ‡ç­¾*å¿…é¡»*æ”¾åœ¨æœ€å‰é¢ï¼Œä»»ä½•å…¶ä»–å†…å®¹éƒ½*å¿…é¡»*è·Ÿéšå…¶åŽï¼ -->
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
  <link href="admin/view/css/bootstrap.min.css" rel="stylesheet">
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
<?php 
//var_dump($re);
//echo "11";
$row=$re[0];
//var_dump($row);
   $id = $row['id'];  
   //$row = fetch_one($sql);
   //var_dump($row);   
   $uname = $row['name'];
   $gender = $row['size'];
   $birthdate = $row['tid'];
   $hobby = $row['uploadtime'];
   $degree = $row['address'];
   $intro = $row['hint'];

 ?>
 <h2 class="text-lift"><a href="admin.php?c=user&m=display">后台首页</a></h2>
  <body background="upload/10082202447e3a23df3e842fe8.jpg">
    <div class="container">
      <div class="row">
        <!--è¿™é‡Œæ·»åŠ ä»£ç -->
        <h1 class="text-center">动漫修改 </h1>
        <form class="form-horizontal" action="admin.php?c=cartoon&m=update&id='.$row['id']'" method="post" enctype="multipart/form-data">
        <div class="form-group">
            <label for="id" class="col-md-2 col-xs-3 control-label">id</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="id" placeholder="id" name="id" value="<?php echo $row['id']; ?>">
            </div>
          </div>
          <div class="form-group">
            <label for="name" class="col-md-2 col-xs-3 control-label">动漫名称</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="name" placeholder="动漫名称" name="name" value="<?php echo $row['name']; ?>">
            </div>
          </div>

          <div class="form-group">
            <label for="intro" class="col-md-2 col-xs-3 control-label">动漫简介</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="intro" placeholder="动漫简介" name="intro" value="<?php echo $row['intro']; ?>">
            </div>
          </div>
           <div class="form-group">
            <label for="size" class="col-md-2 col-xs-3 control-label">动漫大小</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="size" placeholder="动漫大小" name="size" value="<?php echo $row['size']; ?>">
            </div>
          </div>
          <div class="form-group">
            <label for="uid" class="col-md-2 col-xs-3 control-label">动漫类别</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="tid" placeholder="动漫类别" name="tid" value="<?php echo $row['tid']; ?>">
            </div>
          </div>
          <div class="form-group">
            <label for="uploadtime" class="col-md-2 col-xs-3 control-label">上传时间</label>
            <div>
              <input type="date"  id="uploadtime" placeholder="上传时间" name="uploadtime" value="<?php echo $row['uploadtime']; ?>">
          </div>
        </div>
          <div class="form-group">
            <label for="address" class="col-md-2 col-xs-3 control-label">下载地址</label>
            <div class="col-md-10 col-xs-9">
        <input class="form-control" id="address" type="text"  name="address" value="<?php echo $row['address']; ?>">

            </div>
          </div>
          <!-- <div class="form-group">
            <label for="address" class="col-md-2 col-xs-3 control-label">下载地址</label>
            <div class="col-md-10 col-xs-9">
              <input type="text" class="form-control" id="address" name="address" value="<?php echo $row['address']; ?>">
            </div>
          </di -->


          <div class="form-group">
            <label for="hint" class="col-md-2 col-xs-3 control-label">点击量</label>
            <div class="col-md-10 col-xs-9">
        <input class="form-control" id="hint" type="text" placeholder="点击量" name="hint" value="<?php echo $row['hint']; ?>"disabled>

            </div>
          </div>
<div class="form-group">
            <label for="pic" class="col-md-2 col-xs-3 control-label">动漫图片</label>
            <div class="col-md-10 col-xs-9">
        <input class="form-control" id="pic" type="file" placeholder="动漫图片" name="pic" value="<?php echo $row['pic']; ?>">

            </div>
          </div>

          <div class="form-group">

            <div class="col-md-10 col-xs-9 col-md-offset-2 col-xs-offset-3">
              <input type="submit" value="更新">
              <input type="reset" value="重置">
            </div>
          </div>

        </form>
      </div>
    </div>

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="js/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
  </body>
</html>